////
//// Source code recreated from a .class file by IntelliJ IDEA
//// (powered by Fernflower decompiler)
////
//
//package video;
//
//import javax.microedition.lcdui.ChoiceGroup;
//import javax.microedition.lcdui.Command;
//import javax.microedition.lcdui.CommandListener;
//import javax.microedition.lcdui.Display;
//import javax.microedition.lcdui.Displayable;
//import javax.microedition.lcdui.Form;
//import javax.microedition.lcdui.Image;
//
//public class SetLanguageForm extends Form implements CommandListener {
//    private final AboutCanvas parentCanvas;
//    private final Display display;
//    private Command okCommand = null;
//    private Command backCommand = null;
//    private final ChoiceGroup cgtype = new ChoiceGroup("", 1);
//
//    public SetLanguageForm(AboutCanvas var1, Display var2) {
//        super("");
//        this.parentCanvas = var1;
//        this.display = var2;
//        this.cgtype.append("中文", (Image)null);
//        this.cgtype.append("English", (Image)null);
//        this.append(this.cgtype);
//        if(var1.nLanguage == 0) {
//            this.cgtype.setSelectedIndex(0, true);
//            this.setTitle("设置语言");
//            this.okCommand = new Command("确定", 4, 1);
//            this.backCommand = new Command("取消", 2, 1);
//        } else {
//            this.cgtype.setSelectedIndex(1, true);
//            this.setTitle("SetLanguage");
//            this.okCommand = new Command("ok", 4, 1);
//            this.backCommand = new Command("cancel", 2, 1);
//        }
//
//        this.addCommand(this.okCommand);
//        this.addCommand(this.backCommand);
//        this.setCommandListener(this);
//    }
//
//    public void commandAction(Command var1, Displayable var2) {
//        if(var1 == this.okCommand) {
//            if(this.cgtype.getSelectedIndex() == 0) {
//                this.parentCanvas.nLanguage = 0;
//            } else {
//                this.parentCanvas.nLanguage = 1;
//            }
//
//            this.parentCanvas.refreshlanguage();
//        }
//
//        this.display.setCurrent(this.parentCanvas);
//    }
//}
